package com.umpay.privi.model.sys;

import java.io.Serializable;
import java.sql.Timestamp;
import com.umpay.privi.util.ObjectUtil;
import com.umpay.privi.util.StringUtil;

/** 
 * desc:权限
 * <p>创建人：Ding Zhe 创建日期：Apr 19, 2013 </p>
 * @version V1.0  
 */
public class Privilege implements Serializable {

	private static final long serialVersionUID = 1L;
			
	/**
	 * 权限表主键：权限ID 
	 */
	public static final String PRIVILEGEID = "privilegeId";
	//权限ID ;	
	private Integer privilegeId;
	//权限名称;	
	private String privilegeName;
	//权限类别 1：系统权限 2：业务权限;	
	private Short privilegeType;
	//父权限的privilegeID,0表示顶级权限;	
	private Integer parentId;
	//1：运营平台，2：U付企业版;	
	private Short sysId;
	//权限树深度 ;	
	private Short deep;
	//从0开始，同一级权限的顺序;	
	private Short sort;
	//是否叶子节点(0:是;1:不是);	
	private Short isLeaf;
	//权限描述 ;	
	private String description;
	//创建者的用户ID。0表示为系统创建;	
	private String creator;
	//修改人的UserId ;	
	private String modUser;
	//入库时间;	
	private Timestamp inTime;
	//修改时间;	
	private Timestamp modTime;
	//"0 可用 1 删除";	
	private Short flag;
	
	public void trim(){
		StringUtil.trimObjectFields(this);
	}
	
	@Override
	public String toString() {
		return ObjectUtil.object2LogStr(this);
	}
			
	public Integer getPrivilegeId(){
		return privilegeId;
	}
			
	public String getPrivilegeName(){
		return privilegeName;
	}
			
	public Integer getParentId(){
		return parentId;
	}
			
	public Short getSysId(){
		return sysId;
	}
			
	public Short getDeep(){
		return deep;
	}
			
	public Short getSort(){
		return sort;
	}
			
	public Short getIsLeaf(){
		return isLeaf;
	}
			
	public String getDescription(){
		return description;
	}
			
	public String getCreator(){
		return creator;
	}
			
	public String getModUser(){
		return modUser;
	}
			
	public Timestamp getInTime(){
		return inTime;
	}
			
	public Timestamp getModTime(){
		return modTime;
	}
			
	public Short getFlag(){
		return flag;
	}
		
				
	public void setPrivilegeId(Integer privilegeId){
		this.privilegeId = privilegeId;
	}
		
	public void setPrivilegeName(String privilegeName){
		this.privilegeName = privilegeName;
	}
		
	public void setParentId(Integer parentId){
		this.parentId = parentId;
	}
		
	public void setSysId(Short sysId){
		this.sysId = sysId;
	}
		
	public void setDeep(Short deep){
		this.deep = deep;
	}
		
	public void setSort(Short sort){
		this.sort = sort;
	}
		
	public void setIsLeaf(Short isLeaf){
		this.isLeaf = isLeaf;
	}
		
	public void setDescription(String description){
		this.description = description;
	}
		
	public void setCreator(String creator){
		this.creator = creator;
	}
		
	public void setModUser(String modUser){
		this.modUser = modUser;
	}
		
	public void setInTime(Timestamp inTime){
		this.inTime = inTime;
	}
		
	public void setModTime(Timestamp modTime){
		this.modTime = modTime;
	}
		
	public void setFlag(Short flag){
		this.flag = flag;
	}

	public Short getPrivilegeType() {
		return privilegeType;
	}

	public void setPrivilegeType(Short privilegeType) {
		this.privilegeType = privilegeType;
	}
}